package com.export.xlsx.service.impl;

import com.export.xlsx.dao.CompanyTypeDao;
import com.export.xlsx.dao.impl.CompanyTypeDaoImpl;
import com.export.xlsx.domain.CompanyType;
import com.export.xlsx.service.CompanyTypeService;
import com.export.xlsx.utils.DaoFactory;

/**
 * ==================================================================
 * <p>
 * Description: 企业类型ServiceImpl
 * <p>
 * Author: ryu
 * <p>
 * Date: 2018/1/24
 * <p>
 * Version: v1.0
 * <p>
 * Copyright: All rights reserved by Ryu.
 * ==================================================================
 */
public class CompanyTypeServiceImpl implements CompanyTypeService {

    private CompanyTypeDao companyTypeDao = DaoFactory.getInstance()
            .createDao("com.export.xlsx.dao.impl.CompanyTypeDaoImpl", CompanyTypeDaoImpl.class);

    @Override
    public CompanyType queryByName(String name) {
        return companyTypeDao.queryByName(name);
    }

}
